from django.db import models

# Create your models here.

class DingTalkOAApproval(models.Model):
    aprprovalNo = models.CharField("审批编号", max_length=255)
    applicant = models.CharField("申请人", max_length=255)
    createAt = models.DateTimeField('创建时间', auto_now_add=True)
    updateAt = models.DateTimeField('更新时间', auto_now=True)
    desc = models.CharField('备注', max_length=255, blank=True)

    def __str__(self):
        return self.desc

    class Meta:
        ordering = ['createAt']